function getRestaurantIntroDes(refNum){
	var divStart = "<div class = \"col-md-9\">";
	var resName;
	if(refNum == 1){
		resName = "Prezto";
	}else if(refNum == 2){
		resName = "Super Funial";
	}else{
		resName = "Prego";
	}

	var header = "<h3>"+resName+"</h3>";
	var descBody = "<p>Singapore is the world's fourth-leading financial centre, and its port is one of the five busiest ports in the world. The economy depends heavily on exports and refining imported goods, especially in manufacturing, which constituted 26% of Singapore's GDP in 2005. In terms of purchasing power parity, Singapore has the third-highest per capita income in the world.</p>";
	var divEnd = "</div>";

	var divStartImg = "<div class = \"col-md-3\">";
	var imgPath = "../img/intro/img_"+refNum+".jpg";
	var image = "<img src = \""+imgPath+"\" height = \"150\" width = \"150\" id = \"img"+refNum+"\" />";
	var divEndImg = "</div>";
	var restaurantIntro = divStart+header+divEnd+divStart+descBody+descBody+divEnd+divStartImg+image+divEndImg;
	return restaurantIntro;
}

function getContainerIntroHtml(){
	var containerStart = "<div class = \"container\" id = \"restIntro\"";
	var containerEnd = "</div>";
	return containerStart+containerEnd;
}

function getDescriptionIntroHtml(refNum){ 
	var id = "rest"+refNum;
	var rowClass = "row";
	var divStart = "<div class = \""+rowClass+" id=\""+id+">";
	var divEnd = "</div>";
	var restDescription = getRestaurantIntroDes(refNum);
	return divStart+restDescription+divEnd;
}

function register(){
	window.location.href = 'http://www.google.com';
}

$(document).ready(function(){
	var container = getContainerHtml();
	var restIntro1 = getDescriptionIntroHtml(1);
	var restIntro2 = getDescriptionIntroHtml(2);
	var restIntro3 = getDescriptionIntroHtml(3);
	$("#restIntroduction").append(container);
	$("#restIntro").append(restIntro1);
	$("#restIntro").append(restIntro2);
	$("#restIntro").append(restIntro3);
});